Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
Bloqueo de la aplicación al volver a renderizar: se lanza una excepción al ejecutar el bloque de la IU: * -[__NSDictionaryM setObject:forKeyedSubscript:]: la clave no puede ser nula

Estoy tratando de construir un mapa con agrupamiento. Al principio, renderizar todo funciona bien, pero tan pronto como un usuario intenta mover el mapa o hacer zoom, vuelvo a calcular las posiciones de los marcadores/grupos y la aplicación se interrumpe en iOS con el error: Excepción lanzada al ejecutar el bloque de IU: * -[__NSDictionaryM setObject :forKeyedSubscript:]: la clave no puede ser nula

o

cuando filtro los marcadores o cambio en los datos de la matriz de marcadores, aparece el mismo error

 <MapView ref={mapRef} rotateEnabled={false} shouldRasterizeIOS mapType="standard" provider={PROVIDER_GOOGLE} style={styles.map} initialRegion={INITIAL_REGION} animationEnabled > {data && data?.map(item => ( <CustomMarker item={item} key={item?.id} setSelectedMarkerId={(row: any) => { mapRef?.current?.animateToRegion( { latitude: Number(row?.lat), longitude: Number(row?.long), latitudeDelta: 0.06, longitudeDelta: 0.06, }, 1000, ); }} coordinate={{ latitude: Number(item?.lat), longitude: Number(item?.long), }} /> ))} </MapView>

error de imagen

Dependencias: - react-native-map-clustering react-native-maps

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!